package com.jia.sign.controller;

import com.jia.sign.service.SignService;
import lombok.Getter;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Sign)表控制层
 *
 * @author makejava
 * @since 2024-10-12 21:29:21
 */
@RestController
@RequestMapping("sign")
public class SignController {

    @Resource
    private SignService signService;


    @PostMapping
    public ResponseEntity<Boolean> sign() {
        return ResponseEntity.ok(signService.signMonth());
    }


    @GetMapping("count")
    public ResponseEntity<Integer> countSign() {
        return ResponseEntity.ok(signService.countSign());
    }

}

